package com.nacos.temp3.controller;

import com.nacos.temp3.controller.base.BaseRestController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignRestController extends BaseRestController {

    /**
     * http://127.0.0.1:8080/feign/queryIpAddressInfo
     */
    @GetMapping("/queryIpAddressInfo")
    public Object test1() {
        return thirdPartyApiClient.queryIpAddressInfo(APP_KEY);
    }

    /**
     * http://127.0.0.1:8080/feign/productList
     */
    @GetMapping("/productList")
    public Object test2() {
        return orderApiClient.productList();
    }

    /**
     * http://127.0.0.1:8080/feign/customerList
     */
    @GetMapping("/customerList")
    public Object test3() {
        return memberApiClient.customerList();
    }

}
